<div class="ibox">
	<div class="ibox-content">
		<form class="form-horizontal" id="addForm"
			action="${cxt!}/cms/articleCatalog/add" method="POST">
			<div class="form-group">
				<label for="namebasic" class="col-md-2 control-label">${_res["articleCatalog.classificationName"]}<span class="fontColorRed">&nbsp;*</span></label>
				<div class="col-md-3 ">
					<input type="text" class="form-control" name="articleCatalog.name" 	placeholder="${_res['articleCatalog.classificationName']}" required aria-required="true">
				</div>

				<label for="partentInputId" class="col-md-2 control-label">${_res["articleCatalog.superiorClassification"]}<span class="fontColorRed">&nbsp;*</span></label>
				<div class="col-md-3">
					<!-- 父菜单id，从modal中获取 -->
					<input type="text" class="form-control" id="partentMenuName" placeholder="${_res['articleCatalog.pleaseChoose']}"
						data-toggle="modal" data-target="#myModal"> 
					<input type="hidden" name="articleCatalog.parentid" id="parentMenuId" required aria-required="true" />
				</div>
			</div>
			<div class="hr-line-dashed"></div>

			<div class="form-group">
				<label class="col-sm-2 control-label">${_res["articleCatalog.status"]}<span class="fontColorRed">&nbsp;*</span></label>
				<div class="col-sm-3">
					<#dict type="select" name="articleCatalog.status" dictCode="COMMON_STATUS" value="${paramMap['articleCatalog.status']}"/>
				</div>

				<label for="namebasic" class="col-md-2 control-label">${_res["articleCatalog.sortValue"]}</label>
				<div class="col-md-3">
					<input type="text" class="form-control" name="articleCatalog.priority" placeholder="${_res['articleCatalog.sortValue']}" number="true">
				</div>
			</div>
			<div class="hr-line-dashed"></div>

			<div class="form-group">
				<div class="row">
					<div class="col-md-10 col-md-offset-2">
						<% if(hasPrivilegeUrl("articleCatalogList")){ %>
						<button type="button" class="btn btn-warning" onClick="ajaxContent('/cms/articleCatalog/list')">${_res["system.return"]}</button>
						<% } %> 
						<% if(hasPrivilegeUrl("articleCatalogAdd")){ %>
						<button type="submit" class="btn btn-primary">${_res["system.save"]}</button>
						<% } %> 
						<% if(hasPrivilegeUrl("articleCatalogList")){ %>
						<button type="button" class="btn btn-danger" onClick="ajaxContent('/cms/articleCatalog/list')">${_res["system.cancel"]}</button>
						<% } %>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>
<#submit formId="addForm" divId="content" /> <#nav />

<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
	aria-labelledby="myModaLabel">
	<%include("selectPartentNode.html"){}%></div>

<script>
	$(document).ready(function() {
		//增加模拟框拖动效果
		$(".modal").draggable({
			handle : ".modal-header"
		});
	});
</script>